<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录 - $!config.title - Powered by zsCat</title>
<meta name="keywords" content="$!config.keywords" />
<meta name="description" content="$!config.description" />
<meta name="generator" content="" />
<meta name="author" content="">
<meta name="copyright" content=" zsCat  Inc. All Rights Reserved">
<link href="$!webPath/resources/style/system/front/default/css/public.css" type="text/css" rel="stylesheet" />
<link href="$!webPath/resources/style/system/front/default/css/goods.css" type="text/css" rel="stylesheet" />
<script src="$!webPath/resources/js/jquery-1.6.2.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery.getparam.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function(){
		var error = jQuery.getParam("error");
		var content = "";
		switch(error)
		{
		case "kickout":
		  content = "账号被其他人登录！"
		  break;
		case "unauthor":
		  content = "拒绝访问！"
		  break;
		default:
		}
		
		var remind = $("#remind").text();
		if(remind == null || "" == remind){
			jQuery("#remind").text(content);
		}
		
	});
</script>
<script>
jQuery(document).ready(function(){
  jQuery("#theForm").validate({
     errorPlacement:function(error,element) {
      error.appendTo(element.parent().find(".login_error_sp"));  
	  element.parent().find(".login_error_sp").show('normal');
    },
	success:function(label){
	    label.parent().hide();
	},
	rules: {
		userName: "required",
			password: "required"#if($!config.securityCodeLogin),
			code:"required"#end},
		messages: {
			userName: "用户名不能为空",
			password: "密码不能为空"#if($!config.securityCodeLogin),
			code:"验证码不能为空"#end
					}
  });
});
</script>
</head>
<body>
<div class="main"> 
 <div class="head_login">
 <div class="login_logo" style="margin-top:30px; padding-left:80px;">
 #if($!config.websiteLogo) <a href="$!webPath/index.htm"><img src="$!imageWebServer/$!config.websiteLogo.path/$!config.websiteLogo.name" border="0" /></a>#else<a href="$!webPath/index.htm"><img src="$!imageWebServer/resources/style/system/front/default/images/logo.png"  border="0" /></a>#end
 </div>
 </div>
  <div class="index">
    <div class="index2">
      <div class="login_usertb">
        <div class="login_usetbox">
          <div class="login_usrin">
            <ul>
            
      	  <span style="color: red" id="remind">$!message_login</span>
              <form action="$!webPath/user/login.htm" method="post" name="theForm" id="theForm">
                <li class="login_usertxt"><b>登录名：</b>
                  <input name="userName" type="text" id="userName" value="shen" class="login_utxt" autocomplete="off" />
                  <span class="login_error_sp" style="display:none"></span></li>
                <li class="login_usertxt"><b>密&nbsp;&nbsp;&nbsp;码：</b>
                  <input name="password" type="password" id="password" value="123456" autocomplete="off" class="login_utxt"/>
                  <span class="login_error_sp" style="display:none"></span></li>
            #if($!config.securityCodeLogin)
                <script>
                 function refreshCode(){
	                 jQuery("#code_img").attr("src","$!webPath/verify.htm?d"+new Date().getTime());
                 }
                </script>
                <li class="login_usercode"><b>验证码：</b>
                  <input name="code" type="text" id="code"  autocomplete="off" style="text-transform:uppercase;" class="usecode" />
                  <span class="login_codeimg" 
                  #if($!config.securityCodeType=='voice')style="display:none;"#end> 
                  <img style="cursor:pointer;" src="$!webPath/verify.htm" id="code_img" onclick="refreshCode();" width="59" height="27" /></span>
                  <a #if($!config.securityCodeType=='voice')style="display:none;"#end href="javascript:void(0);" onclick="refreshCode();" class="usenosee">看不清换一张</a>
                  #if($!config.securityCodeType=="voice")
                  <a href="javascript:void(0);" onclick="readCode('player')" title="朗读验证码"> <img src="$!imageWebServer/resources/style/common/images/speaker.gif" border="0" /></a><span id="player"></span>
                  #end<span class="login_error_sp" style="display:none"></span>
                  </li>
                  #if($!config.securityCodeType=="voice")
                   <script>
				   function readCode(id){
                         var  s = "<embed id='sound_play' name='sound_play' src='$!webPath/resources/flash/soundPlayer.swf?" + (new Date().getTime()) + "' FlashVars='url=$!webPath"+ "' width='0'   height='0' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></embed>";
                    jQuery("#"+id).html(s);
                    }
				   </script>
                   #end
            #end 
                <li class="login_usercheck"><a href="$!webPath/forget.htm" class="forgetpsw">忘记登录密码?</a><a href="$!webPath/register.htm" class="user_regist">免费注册</a></li>
                <li>
                  <input name="" type="submit" class="login_userbtn" value="登录"/>
                </li>
              </form>
              #if($!{config.sina_login}||$!{config.qq_login}||$!{config.tianyuan_login})
         
              <li class="login_b"><b>合作伙伴账号登录:</b> 
	              <span class="login_bsp"> 
	              	#if($!{config.qq_login}) <a href="$!webPath/qq_login_api.htm" target="_blank"><img src="$!webPath/resources/style/system/front/default/images/login_qq.jpg" width="64" height="21" /></a> #end
	                #if($!{config.sina_login}) <a href="$!webPath/sina_login_api.htm" target="_blank"><img src="$!webPath/resources/style/system/front/default/images/login_wb.jpg" width="64" height="21" /></a> #end 
	                #if($!{config.tianyuan_login}) <a href="$!webPath/tianyuan_login_api.htm" style="margin-top:5px;" target="_blank"><img src="$!webPath/resources/style/system/front/default/images/login_ty.png" width="64" height="21" /></a>  #end 
	               </span> 
               </li>
              #end
            </ul>
          </div>
        </div>
        <div class="login_usertb_bgimg"><span class="imgcenter_span">
        #set($img="$!webPath/$!imageViewTools.random_login_img()")
          <p><img src="$!img" width="490" height="400" /></p>
          </span></div>
      </div>
    </div>
  </div>
  $!httpInclude.include("/footer.htm")
  $!uc_logout_js
  </div>
</body>
</html>
